package com.zhuoshi.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhuoshi.entity.Openingreport;
import com.zhuoshi.entity.OpeningreporthouseparticularCustom;
import com.zhuoshi.mapper.OpeningreportMapper;
import com.zhuoshi.mapper.OpeningreporthouseparticularMapper;
import com.zhuoshi.service.OpeningreporthouseparticularService;

@Service("openingreporthouseparticular")
public class OpeningreporthouseparticularServiceImpl implements OpeningreporthouseparticularService{
	@Autowired
	private OpeningreporthouseparticularMapper openingreporthouseparticularMapper;
	@Autowired
	private OpeningreportMapper openingreportMapper;
	
	
	public List<OpeningreporthouseparticularCustom> selectOpeningreporthouseparticularAll() throws Exception {
		return openingreporthouseparticularMapper.selectOpeningreporthouseparticularAll();
	}

	public List<OpeningreporthouseparticularCustom> selectOpeningreporthouseparticularAllYes(Integer id) throws Exception {
		Openingreport openingreport=new Openingreport();
		openingreport.setId(id);
		openingreport.setState("通过");
		openingreportMapper.updateOpeningreport(openingreport);
		return openingreporthouseparticularMapper.selectOpeningreporthouseparticularAll();
	}


}
